import {EntityId, PageQueryParams} from "kf-web-library";
import {Journal_Summary} from "@/services";

export interface JournalColumnPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];

  special?: boolean; //是否特色栏目
  enable?: boolean; //是否启用
  journalId?: EntityId; //所属期刊
  periodId?: EntityId;  //所属分期
}

export interface JournalColumn{
  deleted: number; //删除标记
  id: EntityId; //主键
  name: string; //栏目名称
  introduction: string; //栏目简介
  enable: boolean; //是否启用
  special: boolean; //是否特色栏目
  specialMarkTime: string; //特色栏目标注时间
  specialMarkUserId: number; //特色栏目标注人id
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}

  articleTotal: number;
  journals: Journal_Summary[];
}

export interface JournalColumn_Summary{
  id: EntityId; //主键
  name: string; //栏目名称
}



export interface JournalColumn_Create{
  name: string; //栏目名称
  introduction: string; //栏目简介
  special: boolean; //是否特色栏目
  specialMarkTime: string; //特色栏目标注时间
  specialMarkUserId: number; //特色栏目标注人id
}


export interface JournalColumn_Modify extends JournalColumn_Create {
  id: EntityId;
}

export interface JournalColumn_Patch extends Partial<JournalColumn_Modify> {
  id: EntityId;
}

